<html ng-app="app">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="../../build/common/base.css" rel="stylesheet">
	<script type="text/javascript" src="../../build/common/base.js"></script>
	<script type="text/javascript" src="../../build/common/ngEdit.js"></script>
	<script type="text/javascript">

		var app = angular.module('app', ['baseDirective']);
		app.controller("ctrl", [ '$scope', 'baseService','ArrayToolService', function($scope, baseService,ArrayTool) {
			$scope.ArrayTool=ArrayTool;
			
			$scope.addRow=function(classVar){
				$scope.data[classVar +"List"].push({});
			}
			
			$scope.$root.$on('afterSaveEvent', function(event,data){
				if(parent.reload){
					parent.reload();
				}
				if(data.r){
					location.reload();
				}else{
					$.Dialog.close(window);	
				}
			});
		}]);
	</script>
</head>
<body class="panel success" ng-controller="ctrl">
	<div class="panel-heading">
		<button  class="btn btn-primary fa-save" ng-model="data" ab-save="/sys/clmaterial/save">保存</button>
		<button class="btn btn-primary fa-close" onclick="javascript:$.Dialog.close(window);">关闭</button>
	</div>
	<form name="form" method="post" ab-load="/sys/clmaterial/get?id={id}" ng-model="data">
		<table class="form-table">
			<tr>								
				<th>物料编码:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.materielId"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>产品名称:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.productName"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>产品路径:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.productRoute"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>品牌:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.brand"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>货品系列:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.goodsSeries"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>产品型号:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.productModel"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>样品照片:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.samplePhotos"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>规格/尺寸:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.specifications"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>单位:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.company"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>市场价:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.marketValue"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>市场价单位:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.marketPriceUnit"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>工程价区间:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.projectPriceRange"   ab-validate="{required:false,number:true,maxIntLen:10}"  />
				</td>								
			</tr>
			<tr>								
				<th>工程价区间单位:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.projectPriceUnit"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>工程价价格:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.projectPrice"   ab-validate="{required:false,number:true,maxIntLen:10}"  />
				</td>								
			</tr>
			<tr>								
				<th>工程价价格单位:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.projectPriceUnits"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>货期:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.shipmentDate" ab-date  ab-validate="{required:false}"  />
				</td>								
			</tr>
			<tr>								
				<th>产地:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.placeOfOrigin"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>主要技术参数:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.technicalParameter"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>参数:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.parameter"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>参数值:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.parameterValue"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>产品手册:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.productManual"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>安装手艺:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.craft"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>检测报告:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.presentation"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>官网/网址:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.website"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>状态:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.state"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>收藏状态:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.collectionStatus"   ab-validate="{required:false,number:true,maxIntLen:10}"  />
				</td>								
			</tr>
			<tr>								
				<th>上传时间:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.uploadTime" ab-date  ab-validate="{required:false}"  />
				</td>								
			</tr>
			<tr>								
				<th>国家定标价:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.fixedPrice"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>历史成交价:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.transactionPrice"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>市场调查价格:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.surveyPrice"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
		</table>
		
	</form>
</body>
</html>